package com.hsfw.dbmodule.entity;

import java.util.Objects;

public class EdgeEntity {
    String from;
    String label;
    String to;
    String id;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EdgeEntity that = (EdgeEntity) o;
        return from.equals(that.from) &&
                label.equals(that.label) &&
                to.equals(that.to) &&
                id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(from, label, to, id);
    }
}
